
<?php include_javascripts() ?>
<table border="0" width="180px">
    <tr>
      <td>
        <div id="div_category" >
            <table border="0" cellpadding="0" cellspacing="0">
              <?php foreach ($list_categoria as $row1): ?>
                <tr>
                    <td>
                    <a href="javascript:void(0);"  onclick="f_show_div_menu_category(<?php echo $row1->getId() ?>);">
                      <?php echo image_tag('../images/flechaabajo.png','border=0') ?>
                    </a>
                    <span>
                        <input id="<?php echo 'txt_grupo'.$row1->getId() ?>" size="20" type="text" style="border:none;" onkeypress="f_pre_save_category(event,<?php echo $row1->getId() ?>);" value="<?php echo $row1->getNombreCategoria() ?>" readonly="readonly"/>
                    </span>
                    <div id="<?php echo 'div_menu_'.$row1->getId() ?>" style="display:none;position:absolute;background:#eeeeee;">
                        <table width="100px">
                          <tr>
                              <td align="right">
                                  <a href="javascript:void(0);" onclick="f_hide_div_menu_category(<?php echo $row1->getId() ?>);">
                                      <?php echo image_tag('../images/x.gif','border=0') ?>
                                  </a>
                              </td>
                          </tr>
                          <tr><td><a href="javascript:void(0);" onclick="f_pre_edit_category(<?php echo $row1->getId() ?>);">Editar</a></td></tr>
                          <tr><td><a href="javascript:void(0);" onclick="f_pre_delete_category(<?php echo $row1->getId() ?>);">Eliminar</a></td></tr>
                        </table>
                    </div>

                    </td>
                </tr>
              <?php endforeach; ?>
            </table>
        </div>
      </td>
    </tr>
    <tr>
      <td>
      <br /><br />
        <a href="#" onClick="openbox('Crear Categoria', 1,'div_box_category_add','div_filter_category_add','title_category_add');">Crear Categoria</a>
<!-- INICIO FORMULARIO FLOTANTE -->
    <div id="div_filter_category_add" class="filter"></div>
    <div id="div_box_category_add" class="box">
        <span id="title_category_add" class="boxtitle"></span>
          <form method="post" action="" name="frm_categoria">
                <table width="100%" border="0">
              <tr>
                <td colspan="3" align="right">
                  <a href="javascript:void(0);" onclick="closebox('div_box_category_add','div_filter_category_add');">
                      <?php echo image_tag('../images/x.gif','border=0') ?>
                  </a>
                </td>
              </tr>
              <tr>
                <td width="100px">Nombre</td>
                <td width="150px">
                    <input type="text" id="txt_nombre_categoria" name="txt_nombre_categoria"/>
                </td>
                <td width="80px">
                    <a href="javascript:void(0)" onclick="f_add_category();closebox('div_box_category_add','div_filter_category_add');">Grabar</a>
                </td>
              </tr>
            </table>
          </form>
        </div>
        <!-- FIN FORMULARIO FLOTANTE -->
      </td>
    </tr>
  </table>
